home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / CModelessBars.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  3.2 KB  |  108 lines  |  [TEXT/CWIE]

  1. // CModelessBars.h -- dialog class
  2.  
  3. #pragma once
  4.  
  5. #include <LGADialog.h>
  6.  
  7. #include "DModelessBarsData.h"
  8.  
  9. class LStream;
  10.  
  11. class CTabPanelGroup;
  12. class LScrollBar;
  13. class CScrollBar;
  14. class LSlider;
  15. class LLittleArrows;
  16. class LProgressBar;
  17. class LChasingArrows;
  18. class CControlPane;
  19.  
  20.  
  21. //----------
  22. class CModelessBars : public LGADialog {
  23. public:    // these comprise the programming interface for using the dialog
  24.     static    CModelessBars*        CreateModelessBars        (LCommander*    inSuperCommander,
  25.                                                  CommandT        inCommand,
  26.                                                  DModelessBarsData*        inData);
  27.     virtual void        SetFromData        (DModelessBarsData*        inData);
  28.     virtual DModelessBarsData*        GetData ();
  29.  
  30. // these functions will be obsoleted
  31. // retained only for backwards compatibility
  32.     virtual Boolean        GetBarsChoice();
  33.     virtual void        SetBarsChoice        (Int32        inChoice);
  34.     virtual Boolean        GetStandardValue();
  35.     virtual void        SetStandardValue        (Int32        inValue);
  36.     virtual Boolean        GetGraphicValue();
  37.     virtual void        SetGraphicValue        (Int32        inValue);
  38.     virtual Boolean        GetSliderValue();
  39.     virtual void        SetSliderValue        (Int32        inValue);
  40.     virtual Boolean        GetTickMarksValue();
  41.     virtual void        SetTickMarksValue        (Int32        inValue);
  42.     virtual Boolean        GetNonDirectionalValue();
  43.     virtual void        SetNonDirectionalValue        (Int32        inValue);
  44.     virtual Boolean        GetLittleArrowsValue();
  45.     virtual void        SetLittleArrowsValue        (Int32        inValue);
  46.     virtual Boolean        GetSpinnerValue();
  47.     virtual void        SetSpinnerValue        (Int32        inValue);
  48.     virtual Boolean        GetVolumeControlValue();
  49.     virtual void        SetVolumeControlValue        (Int32        inValue);
  50.     virtual Boolean        GetJimSSliderValue();
  51.     virtual void        SetJimSSliderValue        (Int32        inValue);
  52.     virtual void        SetStandard2Choice        (Int32        inChoice);
  53.     virtual void        SetIndeterminateChoice        (Int32        inChoice);
  54.     virtual void        SetChasingArrowsChoice        (Int32        inChoice);
  55.     virtual void        SetRectangleChoice        (Int32        inChoice);
  56.     virtual void        SetRoundRectChoice        (Int32        inChoice);
  57.     virtual void        SetBarberPoleChoice        (Int32        inChoice);
  58.     virtual void        SetRoundBarberChoice        (Int32        inChoice);
  59.  
  60.  
  61. public:    // these comprise the implementation
  62.     enum { class_ID = 'Mo10' };
  63.  
  64.                         CModelessBars        (LStream*    inStream);
  65.     virtual                ~CModelessBars();
  66.  
  67.     virtual void        ListenToMessage        (MessageT    inMessage,
  68.                                              void        *ioParam);
  69.  
  70.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  71.                                              void        *ioParam = nil);
  72.     virtual void        FindCommandStatus    (CommandT    inCommand,
  73.                                              Boolean    &outEnabled,
  74.                                              Boolean    &outUsesMark,
  75.                                              Char16        &outMark,
  76.                                              Str255        outName);
  77.  
  78. protected:
  79.     static    void        RegisterClass();
  80.     virtual void        FinishCreateSelf();
  81.     virtual void        DataChanged        (long        inDataID);
  82.  
  83. protected:
  84.     static Boolean        sIsRegistered;
  85.     CommandT            mCommand;
  86.  
  87.     CTabPanelGroup*        mBarsPanel;
  88.     LScrollBar*        mStandardScroll;
  89.     CScrollBar*        mGraphicScroll;
  90.     LSlider*        mSliderScroll;
  91.     LSlider*        mTickMarksScroll;
  92.     LSlider*        mNonDirectionalScroll;
  93.     LLittleArrows*        mLittleArrowsScroll;
  94.     CScrollBar*        mSpinnerScroll;
  95.     CScrollBar*        mVolumeControlScroll;
  96.     CScrollBar*        mJimSSliderScroll;
  97.     LProgressBar*        mStandard2Bar;
  98.     LProgressBar*        mIndeterminateBar;
  99.     LChasingArrows*        mChasingArrowsBar;
  100.     CControlPane*        mRectangleBar;
  101.     CControlPane*        mRoundRectBar;
  102.     CControlPane*        mBarberPoleBar;
  103.     CControlPane*        mRoundBarberBar;
  104.  
  105.     DModelessBarsData*        mData;
  106.  
  107. };
  108.